package com.atguigu.dao;

import com.atguigu.pojo.TravelGroup;
import com.github.pagehelper.Page;

import java.util.List;
import java.util.Map;

public interface TravelGroupDao {
    Page findPageByQueryString(String queryString);

    void addGroup(TravelGroup travelGroup);

    void addGroupAndItemById(Map<String,Integer> map);

    TravelGroup findById(Integer id);

    List<Integer> findTravelItemIdByTravelgroupId(Integer id);

    void edit(TravelGroup travelGroup);

    void deleteTravelGroupAndTravelItemByTravelGroupId(Integer id);

    void deleteById(Integer id);

    List<TravelGroup> findAll();
    List<TravelGroup> findTravelGroupBySetmealId(Integer id);
}
